cmake_minimum_required(VERSION 3.16)
project(CPlusPlus_Demo)

set(CMAKE_CXX_STANDARD 14)
include_directories("include")
file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
foreach (file ${files})
    get_filename_component(name ${file} NAME)
    add_executable(${name} ${file} include/SpeechManager.cpp include/speaker.h)
endforeach ()